package asso.onetoone;

public class User {
	private int uId;
	private String uName;
	
	// 如果查询User的时候想一起把UserInfo对应信息一起查询
	private UserInfo info;

	public int getuId() {
		return uId;
	}

	public void setuId(int uId) {
		this.uId = uId;
	}

	public String getuName() {
		return uName;
	}

	public void setuName(String uName) {
		this.uName = uName;
	}

	public UserInfo getInfo() {
		return info;
	}

	public void setInfo(UserInfo info) {
		this.info = info;
	}

	@Override
	public String toString() {
		return "User [uId=" + uId + ", uName=" + uName + ", info=" + info + "]";
	}
}
